import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

import 'upload_apk_cubit.dart';
import 'upload_apk_state.dart';

class UploadApkPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return BlocBuilder(
      builder: (BuildContext context, UploadApkState state) {
        return LinearProgressIndicator(
          value: state.progress,
          minHeight: 20,
          backgroundColor: Colors.grey,
          valueColor: const AlwaysStoppedAnimation(Colors.blueAccent),
        );
      },
      bloc: context.read<UploadApkCubit>(),
    );
  }
}
